/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */

/*
 * PainelVictory.java
 *
 * Created on 08/12/2011, 19:35:13
 */
package projetointegrado;

import java.awt.Graphics;
import java.awt.Image;
import java.util.logging.Level;
import java.util.logging.Logger;
import javax.swing.ImageIcon;
import javax.swing.JLabel;

/**
 *
 * @author Emerson
 */
public class PainelVictory extends javax.swing.JPanel {
 JLabel estrela = new JLabel();
// public void paintComponent(Graphics g) {
//        Image imagem = new ImageIcon("src/Imagens/m64sm.gif").getImage();
//        
//        g.drawImage(imagem, 0, 0, this);
//        
//    }
    /** Creates new form PainelVictory */
    public PainelVictory() {
//        ImageIcon icon = new ImageIcon(this.getClass().getResource("src/Imagens/m64sm.gif")); //Animated gif
//        estrela.setIcon(icon);
       
        initComponents(); 
        
    }

    /** This method is called from within the constructor to
     * initialize the form.
     * WARNING: Do NOT modify this code. The content of this method is
     * always regenerated by the Form Editor.
     */
    @SuppressWarnings("unchecked")
    // <editor-fold defaultstate="collapsed" desc="Generated Code">//GEN-BEGIN:initComponents
    private void initComponents() {

        jLabel1 = new javax.swing.JLabel();

        jLabel1.setText("Parabéns você venceu a matéria");

        javax.swing.GroupLayout layout = new javax.swing.GroupLayout(this);
        this.setLayout(layout);
        layout.setHorizontalGroup(
            layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(layout.createSequentialGroup()
                .addGap(45, 45, 45)
                .addComponent(jLabel1)
                .addContainerGap(198, Short.MAX_VALUE))
        );
        layout.setVerticalGroup(
            layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(javax.swing.GroupLayout.Alignment.TRAILING, layout.createSequentialGroup()
                .addContainerGap(226, Short.MAX_VALUE)
                .addComponent(jLabel1)
                .addGap(60, 60, 60))
        );
    }// </editor-fold>//GEN-END:initComponents
    // Variables declaration - do not modify//GEN-BEGIN:variables
    private javax.swing.JLabel jLabel1;
    // End of variables declaration//GEN-END:variables
}
